package stage_1_module_2.code.homework_3;

/**
 * 实体类的优化 将通话套餐类和上网套餐类中相同的特征和行为提取出来组成抽象套餐类
 */
abstract class Abstractsheet {
    private int consumeAmount;
    abstract void display();

    public Abstractsheet() {

    }

    public Abstractsheet(int amount) {
        setconsumeAmount(amount);
    }

    public void setconsumeAmount(int amount) {
        this.consumeAmount = amount;
    }
}
